﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Model
{
    [Table("cms_article")]
    [Serializable]
    public class cms_article
    {
        private readonly EFContext _context;
        public cms_article(EFContext context)
        {
            _context = context;
        }

        #region MyRegion

        [Key]
        /// <summary>
        /// id
        /// </summary>		
        public int id { get; set; }

        /// <summary>
        /// 可选字段类型0-编辑,1-作者，2-来源
        /// </summary>
        public int? optional { get; set; }

        /// <summary>
        /// 可选字段值
        /// </summary>
        public string optional_value { get; set; }

        /// <summary>
        /// 主编
        /// </summary>
        public string editor_chief { get; set; }


        /// <summary>
        /// 文章分类
        /// </summary>		
        public int article_class_id { get; set; }
        /// <summary>
        /// 文章标题
        /// </summary>		
        public string article_title { get; set; }
        /// <summary>
        /// 文章简介
        /// </summary>		
        public string article_short { get; set; }
        /// <summary>
        /// 文章内容
        /// </summary>		
        public string article_content { get; set; }
        /// <summary>
        /// 文章作者ID 会员表
        /// </summary>		
        public int article_authorId { get; set; }
        /// <summary>
        /// 文章作者名称 会员表笔名
        /// </summary>		
        public string article_author { get; set; }
        /// <summary>
        /// 文章第三方来源
        /// </summary>		
        public string article_origin { get; set; }
        /// <summary>
        /// 文章第三方来源原网址
        /// </summary>		
        public string article_origin_url { get; set; }
        /// <summary>
        /// {"name":"图片名称","image":"图片路径"}
        /// </summary>		
        public string article_images { get; set; }
        /// <summary>
        /// 视频
        /// </summary>		
        public string article_video { get; set; }
        /// <summary>
        /// SEO 标题信息
        /// </summary>		
        public string seo_title { get; set; }
        /// <summary>
        /// SEO关键词信息
        /// </summary>		
        public string seo_keywords { get; set; }
        /// <summary>
        /// SEO描述信息
        /// </summary>		
        public string seo_description { get; set; }

        /// <summary>
        /// 属性
        /// </summary>
        public string article_attr { get; set; }
        /// <summary>
        /// 文章状态 1为正常 0为下架
        /// </summary>		
        public bool article_status { get; set; }
        /// <summary>
        /// 文章排序 从大到小 默认为0 后台推荐 则根据当前栏目文章最大值+1计算
        /// </summary>		
        public int article_sort { get; set; }
        /// <summary>
        /// 文章点击数 +1 同用户不累加
        /// </summary>		
        public int article_hits { get; set; }

        /// <summary>
        /// 系统默认点击数
        /// </summary>
        public int article_DefaultHits { get; set; }

        /// <summary>
        /// 文章收藏数量 +1
        /// </summary>		
        public int article_collection { get; set; }
        /// <summary>
        /// 文章是否允许评论
        /// </summary>		
        public bool article_iscommend { get; set; }
        /// <summary>
        /// 文章评论数量+1 
        /// </summary>		
        public int article_commend { get; set; }
        /// <summary>
        /// 点赞数量 +1
        /// </summary>		
        public int article_liked { get; set; }
        /// <summary>
        /// 分享次数
        /// </summary>		
        public int article_shared { get; set; }
        /// <summary>
        /// 文章类型 1为图文 2为视频
        /// </summary>		
        public int article_type { get; set; }
        /// <summary>
        /// article_publish_time
        /// </summary>		
        public DateTime article_publish_time { get; set; }
        /// <summary>
        /// 标签ID 逗号隔开
        /// </summary>
        public string article_tabids { get; set; }

        /// <summary>
        /// 音频
        /// </summary>
        public string article_audio { get; set; }


        /// <summary>
        /// 文章广告秒数
        /// </summary>
        public int article_seconds { get; set; }

        /// <summary>
        /// 文章海报
        /// </summary>
        public string article_poster { get; set; }

        /// <summary>
        /// 是否栏目简介
        /// </summary>
        public bool IsToCategory { get; set; } 
        #endregion
    }
}
